<%@ page language="java" 
    pageEncoding="utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<pre>
   <%
   Cookie[] cs=request.getCookies();
   if(cs==null){
	   out.println("没有cookie值");
   }
   for(Cookie c:cs){
	   out.println(c.getName()+"="+c.getValue());
   }
   %>
</pre>

</body>
</html>